package com.ruoyi.management.pojo.energymeter;

import com.baomidou.mybatisplus.annotation.*;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

/**
 * 电表型号
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("energy_meter")
public class EnergyMeterDO {

    /**
     * 型号id
     */
    @TableId(type = IdType.AUTO, value = "model_id")
    private Long modelId;

    /**
     * 型号名称
     */
    @TableField(value = "model_name")
    private String modelName;

    /**
     * 删除标识，0-正常，1-已删除
     */
    @TableField(value = "is_del")
    @TableLogic
    private Integer isDel;

    /**
     * 创建时间
     */
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private LocalDateTime createTime;

    /**
     * 更新时间
     */
    @TableField(value = "update_time", fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime updateTime;

}
